package jdk8.vo;

import lombok.Data;

import java.util.Comparator;

/**
 * @Desc:
 * @author: cww
 * @DateTime: 2020/6/3 17:21
 */
@Data
public class Transaction implements Comparator<Integer> {

    static String  GROCERY = "";
    private String type;
    private Integer id;
    private Integer value;

    /**
     * * @throws NullPointerException if an argument is null and this
     *                              comparator does not permit null arguments
     * @throws ClassCastException   if the arguments' types prevent them from
     *                              being compared by this comparator.
     */
    @Override
    public int compare(Integer o1, Integer o2) {
        return o1.compareTo(o2);
    }
}
